how to condense logs